package com.data.modules.online.cgform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("onl_cgform_enhance_sql")
public class OnlCgformEnhanceSql implements Serializable {
    private static final long serialVersionUID = 1;
    private String buttonCode;
    private String cgbSql;
    private String cgbSqlName;
    private String cgformHeadId;
    private String content;
    @TableId(type = IdType.ASSIGN_UUID)

    private String id;


    public boolean canEqual(Object other) {
        return other instanceof OnlCgformEnhanceSql;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OnlCgformEnhanceSql)) {
            return false;
        }
        OnlCgformEnhanceSql onlCgformEnhanceSql = (OnlCgformEnhanceSql) o;
        if (!onlCgformEnhanceSql.canEqual(this)) {
            return false;
        }
        String id = getId();
        String id2 = onlCgformEnhanceSql.getId();
        if (id != null ? !id.equals(id2) : id2 != null) {
            return false;
        }
        String cgformHeadId2 = getCgformHeadId();
        String cgformHeadId3 = onlCgformEnhanceSql.getCgformHeadId();
        if (cgformHeadId2 != null ? !cgformHeadId2.equals(cgformHeadId3) : cgformHeadId3 != null) {
            return false;
        }
        String buttonCode2 = getButtonCode();
        String buttonCode3 = onlCgformEnhanceSql.getButtonCode();
        if (buttonCode2 != null ? !buttonCode2.equals(buttonCode3) : buttonCode3 != null) {
            return false;
        }
        String cgbSql2 = getCgbSql();
        String cgbSql3 = onlCgformEnhanceSql.getCgbSql();
        if (cgbSql2 != null ? !cgbSql2.equals(cgbSql3) : cgbSql3 != null) {
            return false;
        }
        String cgbSqlName2 = getCgbSqlName();
        String cgbSqlName3 = onlCgformEnhanceSql.getCgbSqlName();
        if (cgbSqlName2 != null ? !cgbSqlName2.equals(cgbSqlName3) : cgbSqlName3 != null) {
            return false;
        }
        String content2 = getContent();
        String content3 = onlCgformEnhanceSql.getContent();
        if (content2 == null) {
            if (content3 == null) {
                return true;
            }
        } else if (content2.equals(content3)) {
            return true;
        }
        return false;
    }

    @Override
    public int hashCode() {
        int i = 43;
        String id = getId();
        int hashCode = id == null ? 43 : id.hashCode();
        String cgformHeadId2 = getCgformHeadId();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = cgformHeadId2 == null ? 43 : cgformHeadId2.hashCode();
        String buttonCode2 = getButtonCode();
        int i3 = (hashCode2 + i2) * 59;
        int hashCode3 = buttonCode2 == null ? 43 : buttonCode2.hashCode();
        String cgbSql2 = getCgbSql();
        int i4 = (hashCode3 + i3) * 59;
        int hashCode4 = cgbSql2 == null ? 43 : cgbSql2.hashCode();
        String cgbSqlName2 = getCgbSqlName();
        int i5 = (hashCode4 + i4) * 59;
        int hashCode5 = cgbSqlName2 == null ? 43 : cgbSqlName2.hashCode();
        String content2 = getContent();
        int i6 = (hashCode5 + i5) * 59;
        if (content2 != null) {
            i = content2.hashCode();
        }
        return i6 + i;
    }

    public void setButtonCode(String buttonCode2) {
        this.buttonCode = buttonCode2;
    }

    public void setCgbSql(String cgbSql2) {
        this.cgbSql = cgbSql2;
    }

    public void setCgbSqlName(String cgbSqlName2) {
        this.cgbSqlName = cgbSqlName2;
    }

    public void setCgformHeadId(String cgformHeadId2) {
        this.cgformHeadId = cgformHeadId2;
    }

    public void setContent(String content2) {
        this.content = content2;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "OnlCgformEnhanceSql(id=" + getId() + ", cgformHeadId=" + getCgformHeadId() + ", buttonCode=" + getButtonCode() + ", cgbSql=" + getCgbSql() + ", cgbSqlName=" + getCgbSqlName() + ", content=" + getContent() + ")";
    }

    public String getId() {
        return this.id;
    }

    public String getCgformHeadId() {
        return this.cgformHeadId;
    }

    public String getButtonCode() {
        return this.buttonCode;
    }

    public String getCgbSql() {
        return this.cgbSql;
    }

    public String getCgbSqlName() {
        return this.cgbSqlName;
    }

    public String getContent() {
        return this.content;
    }
}
